import { request } from '../../../request';

// 获取菜单树

// 新增菜单
export function addMenu(data: any) {
  data.sysType = 'cdl';
  return request({
    url: '/system/menu',
    method: 'post',
    data
  });
}

// 修改菜单
export function jlagvselectMateriel(data: any) {
  return request({
    url: `/mes/jlagv/machine/woker/selectMateriel?materiel=${data}`,
    method: 'get',
    data
  });
}

export function recordselectTop() {
  return request({
    url: `/mes/agv/eqp/use/record/selectTop`,
    method: 'get'
  });
}
export function machinewokercallMateriel(data: any) {
  return request({
    url: `/mes/jlagv/machine/woker/callMateriel`,
    method: 'post',
    data
  });
}

// agv任务下发记录
export function agvtaskissuancerecord(params: any) {
  return request({
    url: '/mes/agv/agvCallbackService/queryAGVRecordsTree',
    method: 'get',
    params
  });
}
